#!/usr/bin/python
# -*- coding: utf-8 -*-

from flask_restful import Resource
from flask         import redirect,request,make_response


class WebAlive(Resource):
    ''' 用户信息 '''
    #----------------------------------------------------------------------
    def __init__(self):
        super(WebAlive, self).__init__()

    def get(self, **kwargs):
        return dict(code=200, data={})

"""
function http_get(api) {
    return new Promise((resolve, reject) => {
        $.ajax({
            type: "get",
            url: api,
            dataType: "json",
            timeout: 1000,
            async: true,
            success: function (data) {
                console.log(data);
            },
            error: function (data) {
                reject(data);
            }
        });
    });
}
"""
